package com.briup.estore.common.pojo;

/**
 * @Author briup-adam
 * @Date 2023/7/31 上午11:11
 * @Description  购物车实体类型
 **/

public class ShopCar {
    /**
     * 购物车ID
     */
    private int id;

    /**
     * 所属客户ID
     */
    private int userId;

    /**
     * 加购的书籍ID
     */
    private int bookId;

    /**
     * 书籍数量
     */
    private int num;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "ShopCar{" +
                "id=" + id +
                ", userId=" + userId +
                ", bookId=" + bookId +
                ", num=" + num +
                '}';
    }
}
